<?php
namespace app\admin\controller;

use app\admin\service\UserService;

class User extends Base
{
    private $service;

    public function __construct()
    {
        parent::__construct();

        $this->service = new UserService;
    }

    public function index()
    {
        echo 'User->index';
    }

    public function info()
    {
        $userInfo = $this->service->detail([
            'token' => $this->token
        ],'
            *
        ');
        $this->userInfo = $userInfo;
        jsonMsg(200,'成功',$userInfo);
    }

    public function add()
    {
        echo 'User->add';
    }

    public function edit()
    {
        echo 'User->edit';
    }

    public function del()
    {
        echo 'User->del';
    }

}
